﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterPage.master" CodeFile="SelectionSample.aspx.cs" Inherits="SelectionSample" %>
<%@ Register assembly="SCS.Toolbar" namespace="SCS.Web.UI.WebControls" tagprefix="SCS" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <link href="Toolbar.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH1" Runat="Server">
    
    <div>
        
        <SCS:Toolbar ID="Toolbar1" runat="server" 
            OnButtonClicked="Toolbar1_ButtonClicked"             
            CssClass="toolbar" 
            SelectionMode="Single">  
            
            <ButtonCssClasses 
                CssClass="button" 
                CssClassEnabled="button_enabled" 
                CssClassDisabled="button_disabled" 
                CssClassSelected="button_selected"/> 
            
            <Items>
                <SCS:ToolbarButton ImageUrl="~/Images/Calendar.gif" />
                <SCS:ToolbarButton ImageUrl="~/Images/FolderGroup.gif" />
                <SCS:ToolbarButton ImageUrl="~/Images/Memo.gif" />                      
                <SCS:ToolbarButton ImageUrl="~/Images/Journal.gif" />
            </Items>                      
        </SCS:Toolbar>
        
    </div>
    
    <p style="clear:both;padding-top:20px;"> 
        
        <asp:label ID="SelectionLabel" runat="server" AssociatedControlID="SelectionTypeSelect" Text="Selection Mode:" /><br />
        <asp:DropDownList ID="SelectionTypeSelect" runat="server">
            <asp:ListItem Value="1" Selected="True">Single</asp:ListItem>
            <asp:ListItem Value="2" Selected="False">Multiple</asp:ListItem>
            <asp:ListItem Value="0" Selected="False">Off</asp:ListItem>
        </asp:DropDownList>
    </p>
    
    <p>
        <asp:Literal ID="ButtonClickedText" runat="server" EnableViewState="false"></asp:Literal>
    </p>

</asp:Content>